<extend name="Index/index"/>

<block name="top-2">
</div><!--继承时少一半,补充-->
    <div class="layui-container">
        <div class="layui-row ">
            <!--循环一下-->
            <foreach name="list" item="vo" key="k" >
                <div class="layui-col-md5 bor-1">
                    <div class="layui-col-md12 ">
                        <div class="layui-col-md5">
                            <img class="J_dynamic_img fill_img img-200" src="{{:get_img_url('__ROOT__/Uploads/GoodsImg/',$vo['img'],350)}}" >
                        </div>
                        <div class="layui-col-md6 qg-text">
                            <h6>{{$vo.gname}}</h6>
                            <hr class="layui-bg-gray">
                            <h3>快抢价:{{$vo.seck_pri}}<span>仅剩{{$vo.num}}件</span></h3>
                            <a class="layui-btn layui-btn-danger">立即抢购</a>
                        </div>
                    </div>
                </div>
            </foreach>

        </div>
    </div>
    <link rel="stylesheet" href="__PUBLIC__/Home/css/search.css" type="text/css"/>

    <div class="layui-container">
        <div class="layui-row">
            <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
                <ul class="layui-tab-title">
                    <li class="layui-this">搜索结果</li>
                </ul>
                <div class="layui-tab-content">
                    <!--<div class="layui-tab-item">-->
                        <!--<div class="layui-row">-->
                    <foreach name="goodslist" item="val">
                        <div class="layui-col-md2 wid-all">
                            <a href="{{:U('Index/goodsDetails',array('id'=>$val['id']))}}"><img src="{{:get_img_url('__ROOT__/Uploads/GoodsImg/',$val['img'],350)}}"></a>
                            <div class="caption">
                                <a href="{{:U('Index/goodsDetails',array('id'=>$val['id']))}}"><h3>{{:subtext($val['name'],20)}}</h3></a>
                                <h2 class="text-danger">
                                    <span class="glyphicon glyphicon-jpy h2"></span>&nbsp;{{$val.price}}
                                    <a href="#"><i class="layui-icon">&#xe600;</i></a>

                                </h2>

                            </div>
                        </div>

                    </foreach>
                        <!--</div>-->
                    <!--</div>-->
                </div>
            </div>
        </div>
    </div>

</block>

